const fs = require('fs')
fs.readFile('./成绩.txt','utf8',(err,data) => {
  if (err) throw err
  console.log(data);
  
  const arrOld = data.split('')
  console.log(arrOld);
  const arrNew = []
  arrOld.forEach(item => {
    arrNew.push(item.replace('=',':'))
  })
  const newStr = arrNew.join('')
  console.log(newStr);

  fs.writeFile('./成绩ok.txt',newStr,(err) => {
    if (err) throw err
  })
})